|
This page last changed on Dec 29, 2005 by cmiller.
You need to edit in 'Wiki Markup' mode to include macros in your page.
The Blog Posts Macro allows you to display a space's news items within a page. Clicking on the title of the news item opens it up in a new window.
Blog Posts Macro
| What you need to type |
What you will get |
| {blog-posts} |
This is a sample news item for the Documentation Space.
Last changed: Aug 11, 2005 23:26 by Vidya Madabushi
|
Optional Parameters
| No |
parameter |
Default |
Description |
| 1 |
no |
15 |
Specify the number of posts you want displayed |
| 2 |
content |
excerpts |
Display the content in its entirety, as short excerpts, or as a list of titles |
| 3 |
time |
none |
Specify from how far back in time you want items displayed |
| 4 |
labels |
none |
To display content with specified labels |
Optional Parameters
1. Specify the number of posts you want displayed
2. Display the content in its entirety, as short excerpts, or as a list of titles
Excerpts
Titles
3. Choose from how far back in time you want items displayed
For example, "time=12h" would display those items created in the last twelve hours, and "time=7d" would show items made in the last week. (The default is no limit)
Hours
Days
4. Filter items using labels
- To display content with any of the specified labels*
The following code will display items that contain either of the labels, 'atlassian' or 'confluence'
To display content with all of the specified labels
The following code will display content with both labels 'atlassian' and 'confluence'
RELATED TOPICS
Working with Macros
Working with News Overview
Take me back to Confluence 2.0 Home
|
Is there any way to constrain the formating of the display for this macro? It's pretty messy if you've got it in a list. The title, for example is huge.

Posted by doggy@doggy.com at Dec 26, 2005 12:43
|
|
Why I can't add this macro to page that is part of another page? I am getting error "Unable to render (blog-posts) Already included page...."? Everything works with contentbylabel macro... except that macro doesn't suit my need...

Posted by ajevic at Feb 06, 2006 06:22
|
|
Is there a way to display only the blog item titles without the table header?
Also, it would be nice if you could choose the order and types of content displayed. For example you might setup the macro to handle this:

Posted by dnagoda at Apr 07, 2006 12:13
|
|
Oops! Previous macro call wasn't escaped. Should have looked like this:
{blog-posts:content=user-defined| fields=date, title}

Posted by dnagoda at Apr 07, 2006 12:16
|
|
Here's a bug. When I use the macro like this...
... I don't actually get the 4 most recent posts. The "most recent" post is actually from a couple of weeks ago. The other three are the most recent. What's up with that?
/carlos

Posted by carlosp at Jun 10, 2006 19:31
|
|